package com.cwm.test.single.lazy;

public class LazyDoubleCheckSingletion {

    private static LazyDoubleCheckSingletion instance;

    private LazyDoubleCheckSingletion() {
    }

    public static LazyDoubleCheckSingletion getInstance() {
        if (instance == null) {
            synchronized (LazyDoubleCheckSingletion.class){
                if (instance == null) {
                    instance = new LazyDoubleCheckSingletion();
                }
            }
        }
        return instance;
    }
}